from django.db import models


class ChartModel(models.Model):
    chart_name = models.CharField(max_length=50, verbose_name='轮播图名字')
    image_url = models.CharField(max_length=200, verbose_name='图片地址')

    class Meta:
        db_table = 'tb_chart'
        verbose_name = '轮播图'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.chart_name
